﻿#include"XQListWidget.h"
#include"XQListData.h"
#include"XQComboCheckButton.h"
#include<QComboBox>
void XQListWidget::searchData()
{
	//清空原先的;
	m_SearchData.clear();
	//遍历数据
	for (auto& data : m_data)
	{
		if (data->textExists(m_findEdit->currentText(),m_findBtn->selectIndexs()))
			m_SearchData << data;
		if (data->textExists(m_findEdit->currentText(), m_findBtn->selectTexts()))
			m_SearchData << data;
	}
	showSearchData();
}




